package com.dragon.modules.yuegou.model.lot;

import com.dragon.modules.yuegou.entity.lot.ActivityJoinEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 会员参与活动信息表模型类
 * 
 * @author pbuilder generated
 * @date 2019-10-24 10:22:55
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class ActivityJoin extends ActivityJoinEntity {

	private List<MemberTicket> memberList;
	
	//会员手机号码
    private String mobile;
	
	public List<MemberTicket> getMemberList() {
		return memberList;
	}

	public void setMemberList(List<MemberTicket> memberList) {
		this.memberList = memberList;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	/**
	 * 构造一个空会员参与活动信息表模型对象
	 */
	public ActivityJoin(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个会员参与活动信息表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public ActivityJoin(ActivityJoinEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个会员参与活动信息表模型对象
	 * 
	 * @param other 其它对象
	 */
	public ActivityJoin(ActivityJoin other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public ActivityJoin id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getMemberId() {
    	return memberId;
    }

    /**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 * @return 当前对象
	 */
    public ActivityJoin memberId(String memberId) {
    	this.memberId = memberId;
    	return this;
    }

	@Override
	public String getActivityId() {
    	return activityId;
    }

    /**
	 * 设置活动ID
	 * 
	 * @param activityId 活动ID
	 * @return 当前对象
	 */
    public ActivityJoin activityId(String activityId) {
    	this.activityId = activityId;
    	return this;
    }

	@Override
	public String getMemberHeadImg() {
    	return memberHeadImg;
    }

    /**
	 * 设置会员头像
	 * 
	 * @param memberHeadImg 会员头像
	 * @return 当前对象
	 */
    public ActivityJoin memberHeadImg(String memberHeadImg) {
    	this.memberHeadImg = memberHeadImg;
    	return this;
    }

	@Override
	public String getMemberNickName() {
    	return memberNickName;
    }

    /**
	 * 设置会员昵称
	 * 
	 * @param memberNickName 会员昵称
	 * @return 当前对象
	 */
    public ActivityJoin memberNickName(String memberNickName) {
    	this.memberNickName = memberNickName;
    	return this;
    }

	@Override
	public Integer getShareNum() {
    	return shareNum;
    }

    /**
	 * 设置会员分享次数
	 * 
	 * @param shareNum 会员分享次数
	 * @return 当前对象
	 */
    public ActivityJoin shareNum(Integer shareNum) {
    	this.shareNum = shareNum;
    	return this;
    }
    
    @Override
	public String getOrderNo() {
    	return orderNo;
    }

    /**
	 * 设置订单号
	 * 
	 * @param orderNo 订单号
	 * @return 当前对象
	 */
    public ActivityJoin orderNo(String orderNo) {
    	this.orderNo = orderNo;
    	return this;
    }

	@Override
	public Boolean getIsPrize() {
    	return isPrize;
    }

    /**
	 * 设置是否中奖 0-未中奖；1-已中奖
	 * 
	 * @param isPrize 是否中奖 0-未中奖；1-已中奖
	 * @return 当前对象
	 */
    public ActivityJoin isPrize(Boolean isPrize) {
    	this.isPrize = isPrize;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置创建时间
	 * 
	 * @param createdTime 创建时间
	 * @return 当前对象
	 */
    public ActivityJoin createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }
}
